home *** CD-ROM | disk | FTP | other *** search
- Subject: Re(2): Auto Destruct Objects
- Sent: 6/27/96 11:32 AM
- Received: 6/27/96 11:41 AM
- From: Scott Champ, ChampSM@sciex.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Auto-destruct object in ODF behaves exactly the same way as standard C++
- >objects with a compiler supporting exception. With compilers like
- >Metrowerks or visual C++ which supports exception you can turn off the
- >ODF emulation exception and use the compiler native exception. In this
- >case ODF is better following the same rules otherwise you would not have
- >the same behavior with emulation and native exception. Look at any C++
- >manual covering exceptions and you can apply that to ODF.
-
- I guess I wasn't specific enough with my request. It is my impression that
- native C++ exceptions will auto distruct any stack based objects. The ODF
- documentation (pg. 307) indicates that heap based objects are also auto
- distructable. If this is true then do the heap based objects have the same
- scope as stack based objects with respect to exception handling (i.e. are they
- deleted when you exit the method)? Also is there any documentation on how to
- turn off the ODF emulated exceptions and use Metrowerk's?
-
- Thanks
-
- Scott Champ
-
- Sciex
- 71 Four Valley Drive
- Concord, Ontario, Canada
- L4K-4V8
-